<template>
    <div>one</div>
    <button @click="dian">two</button>
    <button @click="wss">消息提醒</button>
    <el-button type="primary">Primary</el-button>
    <el-button type="info">Info</el-button>
</template>
<script setup>
    import { useRouter } from 'vue-router';
    import {useStore} from '@store'
    import { onMounted } from 'vue';
    import axios from  'axios'

    import {gettype1} from '../request/api'

    let store = useStore()
    let router = useRouter()

    let dian = ()=>{
        router.push('/two')
        console.log(111);
        
    }
    console.log(store.num);
    
    onMounted(()=>{
        gettype1().then(res=>{
            console.log(res.data);
            
        })
    })

    let wss = ()=>{
        electron.ipcRenderer.invoke('webWss',{
            a:1
        })
    }
</script>